from django.urls import re_path
from . import views

urlpatterns = [
    # 书籍
    re_path(r'^books/$', views.BooksAPIVIew.as_view()),
    re_path(r'^books/(?P<pk>\d+)/$', views.BookAPIView.as_view()),
    # 人物
    re_path(r'^heros/$', views.HerosAPIVIew.as_view()),
    re_path(r'^heros/(?P<pk>\d+)/$', views.HeroAPIView.as_view()),

]
